//package com.anc.platform.limit;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * @author Exrickx
// */
//@Configuration
//public class InterceptorConfiguration extends WebMvcConfigurerAdapter {
//
//    @Autowired
//    private LimitRaterInterceptor limitRaterInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//
//        // 注册拦截器
//        InterceptorRegistration ir = registry.addInterceptor(limitRaterInterceptor);
//        // 配置拦截的路径
//        ir.addPathPatterns("/**");
//    }
//}
